<template>
  <view class="loading">
    <view class="content">
      <u-loading mode="circle"></u-loading>
      <view class="text"> {{text}} </view>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
    },
  },
  data() {
    return{}
  },
};
</script>

<style lang="scss" scoped>
.loading {
  width: 100vw;
  height: 100vh;
  background: white;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000000;
  display: flex;
  align-items: center;
  justify-content: center;
  .content {
    width: 200rpx;
    height: 200rpx;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 26rpx;
    color: white;
    .text {
      margin-top: 10rpx;
    }
  }
}
</style>